/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gruppe1projekt.ModelLayer;

/**
 *
 * @author Moulde
 */
public class Employee extends Actor
{
    private String Username;
    private String PasswordHash;
    private String Role;

    public Employee(String Username, String PasswordHash, String FullName, String Adress, String City, String Country, String State, String ZipCode)
    {
        super(FullName, Adress, City, Country, State, ZipCode);
        this.Username = Username;
        this.PasswordHash = new MD5Hash(PasswordHash).getResult();
        this.Role = "sales";
    }

    public String getPasswordHash()
    {
        return PasswordHash;
    }

    public void setPasswordHash(String PasswordHash)
    {
        this.PasswordHash = new MD5Hash(PasswordHash).getResult();
    }

    public String getUsername()
    {
        return Username;
    }

    public void setUsername(String Username)
    {
        this.Username = Username;
    }

    public String getRole()
    {
        return Role;
    }

    public void setRole(String Role)
    {
        this.Role = Role;
    }

    @Override
    public String toString()
    {
        return getUsername();
    }
}
